#e
#Title[uto^tCXN[v]
#Text[JbgCiȂjXs[hto]
#ScriptVersion[2]

script_enemy_main {
    let name ="uto^tCXN[v";
    let imgBoss   = "script\img\ExRumia.png";
    let frame     =  0;
    let angleBase = 90;
    
    @Initialize {
        CutIn(YOUMU, name, "", 0, 0, 0, 0);

        SetX(GetCenterX);
        SetY(GetClipMinY + 150);
        SetLife(5000);
          
        LoadGraphic(imgBoss);
        SetTexture(imgBoss);
        SetGraphicRect(0, 0, 63, 63);
      

    }

    @MainLoop {
        SetCollisionA(GetX, GetY, 24);
        SetCollisionB(GetX, GetY, 24);

        frame++;
        if(frame == 5) {
            CreateShot01(GetX, GetY, 3, angleBase , WHITE22, 0);
            CreateShot01(GetX, GetY, 3, angleBase +20, RED22, 0);
            CreateShot01(GetX, GetY, 3, angleBase +90, ORANGE22,0);
            CreateShot01(GetX, GetY, 3, angleBase +110, YELLOW22, 0);
            CreateShot01(GetX, GetY, 3, angleBase -180, GREEN22, 0);
            CreateShot01(GetX, GetY, 3, angleBase -200, AQUA22, 0);
            CreateShot01(GetX, GetY, 3, angleBase -90, BLUE22, 0);
            CreateShot01(GetX, GetY, 3, angleBase -70, PURPLE22, 0);

            angleBase += 8;
            frame = 0;

      
         }
     
    }


    @DrawLoop {
        DrawGraphic(GetX, GetY);
    }

    @Finalize {
        DeleteGraphic(imgBoss);
    }
}
    